home *** CD-ROM | disk | FTP | other *** search
MacBinary | 2000-06-15 | 4.9 KB | [TEXT/ToyS] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: PowerKey Notifier.txt
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Swift 3D 3D Graphic (poly/swift3D3DGraphic)
| ext
| Unsupported |
1%
| dexvert
| Boost Text serialization (other/boostTextSerialization)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Thu Jun 15 17:14:31 2000, modified Thu Jun 15 17:14:31 2000, creator 'ToyS', type ASCII, 3732 bytes "PowerKey Notifier.txt" , at 0xf14 982 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [ToyS] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 15 50 6f 77 65 72 4b | 65 79 20 4e 6f 74 69 66 |..PowerK|ey Notif|
|00000010| 69 65 72 2e 74 78 74 00 | 00 00 00 00 00 00 00 00 |ier.txt.|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 54 6f 79 | 53 00 00 00 00 00 00 00 |.TEXTToy|S.......|
|00000050| 00 00 00 00 00 0e 94 00 | 00 03 d6 b5 6e f7 b7 b5 |........|....n...|
|00000060| 6e f7 b7 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |n.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 84 87 00 00 |........|........|
|00000080| 28 2a 0d 54 68 69 73 20 | 73 63 72 69 70 74 20 77 |(*.This |script w|
|00000090| 69 6c 6c 20 74 6f 67 67 | 6c 65 20 70 6f 77 65 72 |ill togg|le power|
|000000a0| 20 6f 6e 20 61 20 73 65 | 6c 65 63 74 65 64 20 6f | on a se|lected o|
|000000b0| 75 74 6c 65 74 20 6f 66 | 20 61 20 50 6f 77 65 72 |utlet of| a Power|
|000000c0| 4b 65 79 20 50 72 6f 20 | 32 30 30 20 6f 72 20 36 |Key Pro |200 or 6|
|000000d0| 30 30 2e 20 0d 54 68 69 | 73 20 69 73 20 75 73 65 |00. .Thi|s is use|
|000000e0| 66 75 6c 20 66 6f 72 20 | 72 65 73 74 61 72 74 69 |ful for |restarti|
|000000f0| 6e 67 20 61 20 73 65 72 | 76 65 72 20 74 68 61 74 |ng a ser|ver that|
|00000100| 20 68 61 73 20 66 61 69 | 6c 65 64 2e 0d 0d 49 6e | has fai|led...In|
|00000110| 74 65 72 4d 61 70 70 65 | 72 20 73 65 6e 64 73 20 |terMappe|r sends |
|00000120| 74 68 69 73 20 73 63 72 | 69 70 74 20 74 68 65 20 |this scr|ipt the |
|00000130| 49 50 20 61 64 64 72 65 | 73 73 20 6f 66 20 74 68 |IP addre|ss of th|
|00000140| 65 20 64 65 76 69 63 65 | 20 74 68 61 74 20 68 61 |e device| that ha|
|00000150| 73 20 66 61 69 6c 65 64 | 2e 20 0d 54 68 65 20 73 |s failed|. .The s|
|00000160| 63 72 69 70 74 20 65 78 | 61 6d 69 6e 65 73 20 61 |cript ex|amines a|
|00000170| 6e 20 61 72 72 61 79 20 | 6f 66 20 49 50 20 61 64 |n array |of IP ad|
|00000180| 64 72 65 73 73 65 73 20 | 74 6f 20 73 65 65 20 77 |dresses |to see w|
|00000190| 68 69 63 68 20 50 6f 77 | 65 72 4b 65 79 20 55 6e |hich Pow|erKey Un|
|000001a0| 69 74 4e 75 6d 62 65 72 | 20 0d 61 6e 64 20 4f 75 |itNumber| .and Ou|
|000001b0| 74 6c 65 74 4e 75 6d 62 | 65 72 20 73 68 6f 75 6c |tletNumb|er shoul|
|000001c0| 64 20 62 65 20 74 6f 67 | 67 6c 65 64 2e 0d 0d 54 |d be tog|gled...T|
|000001d0| 68 65 20 73 63 72 69 70 | 74 20 74 68 65 6e 20 73 |he scrip|t then s|
|000001e0| 65 74 73 20 74 68 61 74 | 20 6f 75 74 6c 65 74 27 |ets that| outlet'|
|000001f0| 73 20 6c 65 76 65 6c 20 | 74 6f 20 30 2c 20 70 61 |s level |to 0, pa|
|00000200| 75 73 65 73 20 31 30 20 | 73 65 63 6f 6e 64 73 2c |uses 10 |seconds,|
|00000210| 20 61 6e 64 20 74 68 65 | 6e 0d 73 65 74 73 20 69 | and the|n.sets i|
|00000220| 74 20 62 61 63 6b 20 74 | 6f 20 31 30 30 20 28 66 |t back t|o 100 (f|
|00000230| 75 6c 6c 20 6f 6e 2e 29 | 20 54 68 69 73 20 64 65 |ull on.)| This de|
|00000240| 6c 61 79 20 69 73 20 6c | 6f 6e 67 20 65 6e 6f 75 |lay is l|ong enou|
|00000250| 67 68 20 74 6f 20 61 6c | 6c 6f 77 20 61 6c 6c 20 |gh to al|low all |
|00000260| 4d 61 63 20 6d 6f 64 65 | 6c 73 0d 28 61 6e 64 20 |Mac mode|ls.(and |
|00000270| 6f 74 68 65 72 20 63 6f | 6d 70 75 74 65 72 73 2c |other co|mputers,|
|00000280| 20 74 6f 6f 29 20 74 6f | 20 64 65 74 65 63 74 20 | too) to| detect |
|00000290| 74 68 65 20 70 6f 77 65 | 72 20 66 61 69 6c 75 72 |the powe|r failur|
|000002a0| 65 2e 0d 0d 4e 6f 74 65 | 3a 20 54 68 69 73 20 73 |e...Note|: This s|
|000002b0| 63 72 69 70 74 20 77 69 | 6c 6c 20 62 65 65 70 20 |cript wi|ll beep |
|000002c0| 61 6e 64 20 72 65 74 75 | 72 6e 20 69 66 20 74 68 |and retu|rn if th|
|000002d0| 65 20 65 76 65 6e 74 5f | 74 79 70 65 20 69 73 20 |e event_|type is |
|000002e0| 22 4f 4b 22 20 6f 72 20 | 22 55 50 22 2e 0d 49 74 |"OK" or |"UP"..It|
|000002f0| 27 73 20 69 6e 63 6f 6e | 63 65 69 76 61 62 6c 65 |'s incon|ceivable|
|00000300| 20 74 68 61 74 20 61 6e | 79 6f 6e 65 20 77 6f 75 | that an|yone wou|
|00000310| 6c 64 20 77 61 6e 74 20 | 74 6f 20 70 6f 77 65 72 |ld want |to power|
|00000320| 20 63 79 63 6c 65 20 61 | 20 63 6f 6d 70 75 74 65 | cycle a| compute|
|00000330| 72 20 61 73 20 69 74 27 | 73 0d 72 65 74 75 72 6e |r as it'|s.return|
|00000340| 69 6e 67 20 74 6f 20 73 | 65 72 76 69 63 65 2e 2e |ing to s|ervice..|
|00000350| 2e 0d 0d 4e 6f 74 65 3a | 20 54 68 69 73 20 73 63 |...Note:| This sc|
|00000360| 72 69 70 74 20 77 69 6c | 6c 20 77 6f 72 6b 20 6f |ript wil|l work o|
|00000370| 6e 20 61 6c 6c 20 76 65 | 72 73 69 6f 6e 73 20 6f |n all ve|rsions o|
|00000380| 66 20 41 70 70 6c 65 53 | 63 72 69 70 74 2e 20 49 |f AppleS|cript. I|
|00000390| 74 20 75 73 65 73 20 61 | 6e 20 69 6e 65 66 66 69 |t uses a|n ineffi|
|000003a0| 63 69 65 6e 74 0d 73 70 | 69 6e 2d 6c 6f 6f 70 20 |cient.sp|in-loop |
|000003b0| 74 6f 20 69 6e 73 65 72 | 74 20 61 20 64 65 6c 61 |to inser|t a dela|
|000003c0| 79 20 62 65 74 77 65 65 | 6e 20 74 68 65 20 63 6f |y betwee|n the co|
|000003d0| 6d 6d 61 6e 64 73 20 74 | 6f 20 74 68 65 20 50 6f |mmands t|o the Po|
|000003e0| 77 65 72 4b 65 79 2e 20 | 49 66 20 79 6f 75 20 61 |werKey. |If you a|
|000003f0| 72 65 20 75 73 69 6e 67 | 0d 61 20 50 6f 77 65 72 |re using|.a Power|
|00000400| 4b 65 79 20 77 69 74 68 | 20 4d 61 63 4f 53 20 38 |Key with| MacOS 8|
|00000410| 2e 35 20 6f 72 20 6e 65 | 77 65 72 20 28 77 69 74 |.5 or ne|wer (wit|
|00000420| 68 20 41 70 70 6c 65 53 | 63 72 69 70 74 20 31 2e |h AppleS|cript 1.|
|00000430| 33 20 6f 72 20 6e 65 77 | 65 72 29 2c 20 79 6f 75 |3 or new|er), you|
|00000440| 20 63 61 6e 20 72 65 70 | 6c 61 63 65 0d 74 68 65 | can rep|lace.the|
|00000450| 20 22 70 61 75 73 65 28 | 31 35 29 22 20 6c 69 6e | "pause(|15)" lin|
|00000460| 65 20 77 69 74 68 20 22 | 64 65 6c 61 79 20 31 35 |e with "|delay 15|
|00000470| 22 2e 20 0d 0d 41 73 20 | 61 6e 20 61 6c 74 65 72 |". ..As |an alter|
|00000480| 6e 61 74 69 76 65 2c 20 | 79 6f 75 20 63 6f 75 6c |native, |you coul|
|00000490| 64 20 69 6e 73 74 61 6c | 6c 20 61 20 74 68 69 72 |d instal|l a thir|
|000004a0| 64 2d 70 61 72 74 79 20 | 6f 73 61 78 20 74 68 61 |d-party |osax tha|
|000004b0| 74 20 77 69 6c 6c 20 70 | 65 72 66 6f 72 6d 20 74 |t will p|erform t|
|000004c0| 68 65 20 64 65 6c 61 79 | 0d 66 75 6e 63 74 69 6f |he delay|.functio|
|000004d0| 6e 2e 20 54 68 69 73 20 | 77 69 6c 6c 20 68 61 76 |n. This |will hav|
|000004e0| 65 20 61 20 64 72 61 6d | 61 74 69 63 61 6c 6c 79 |e a dram|atically|
|000004f0| 20 73 6d 61 6c 6c 65 72 | 20 65 66 66 65 63 74 20 | smaller| effect |
|00000500| 6f 6e 20 70 72 6f 63 65 | 73 73 6f 72 20 75 73 65 |on proce|ssor use|
|00000510| 20 77 68 65 6e 20 0d 65 | 78 65 63 75 74 69 6e 67 | when .e|xecuting|
|00000520| 20 74 68 69 73 20 73 63 | 72 69 70 74 2e 20 49 6e | this sc|ript. In|
|00000530| 74 65 72 4d 61 70 70 65 | 72 20 68 61 73 20 62 65 |terMappe|r has be|
|00000540| 65 6e 20 74 65 73 74 65 | 64 20 77 69 74 68 20 74 |en teste|d with t|
|00000550| 68 65 20 53 6c 65 65 70 | 20 43 6f 6d 6d 61 6e 64 |he Sleep| Command|
|00000560| 73 20 6f 73 61 78 20 0d | 66 72 6f 6d 20 45 72 69 |s osax .|from Eri|
|00000570| 63 20 47 72 61 6e 74 2c | 20 61 6e 64 20 69 73 20 |c Grant,| and is |
|00000580| 61 76 61 69 6c 61 62 6c | 65 20 66 72 6f 6d 20 3c |availabl|e from <|
|00000590| 68 74 74 70 3a 2f 2f 68 | 6f 6d 65 2e 65 61 72 74 |http://h|ome.eart|
|000005a0| 68 6c 69 6e 6b 2e 6e 65 | 74 2f 7e 65 61 67 72 61 |hlink.ne|t/~eagra|
|000005b0| 6e 74 2f 3e 2e 20 0d 49 | 66 20 79 6f 75 20 75 73 |nt/>. .I|f you us|
|000005c0| 65 20 74 68 69 73 20 74 | 65 63 68 6e 69 71 75 65 |e this t|echnique|
|000005d0| 2c 20 62 65 20 73 75 72 | 65 20 74 6f 20 70 6c 61 |, be sur|e to pla|
|000005e0| 63 65 20 61 20 22 75 73 | 65 20 73 6c 65 65 70 20 |ce a "us|e sleep |
|000005f0| 63 6f 6d 6d 61 6e 64 73 | 22 20 6c 69 6e 65 20 61 |commands|" line a|
|00000600| 74 20 0d 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |t .the b|eginning|
|00000610| 20 6f 66 20 74 68 69 73 | 20 73 63 72 69 70 74 2e | of this| script.|
|00000620| 0d 0d 31 35 4a 75 6e 65 | 20 32 30 30 30 0d 52 69 |..15June| 2000.Ri|
|00000630| 63 68 20 42 72 6f 77 6e | 0d 44 61 72 74 77 61 72 |ch Brown|.Dartwar|
|00000640| 65 2c 20 4c 4c 43 0d 72 | 69 63 68 61 72 64 2e 65 |e, LLC.r|ichard.e|
|00000650| 2e 62 72 6f 77 6e 40 64 | 61 72 74 77 61 72 65 2e |.brown@d|artware.|
|00000660| 63 6f 6d 0d 2a 29 0d 0d | 6f 6e 20 70 61 75 73 65 |com.*)..|on pause|
|00000670| 28 6c 65 6e 67 74 68 29 | 0d 09 6c 6f 63 61 6c 20 |(length)|..local |
|00000680| 65 6e 64 54 69 6d 65 0d | 09 73 65 74 20 65 6e 64 |endTime.|.set end|
|00000690| 54 69 6d 65 20 74 6f 20 | 28 63 75 72 72 65 6e 74 |Time to |(current|
|000006a0| 20 64 61 74 65 29 20 2b | 20 6c 65 6e 67 74 68 0d | date) +| length.|
|000006b0| 09 72 65 70 65 61 74 20 | 77 68 69 6c 65 20 28 63 |.repeat |while (c|
|000006c0| 75 72 72 65 6e 74 20 64 | 61 74 65 29 20 3c 20 65 |urrent d|ate) < e|
|000006d0| 6e 64 54 69 6d 65 0d 09 | 65 6e 64 20 72 65 70 65 |ndTime..|end repe|
|000006e0| 61 74 0d 65 6e 64 20 70 | 61 75 73 65 0d 0d 6f 6e |at.end p|ause..on|
|000006f0| 20 c7 65 76 65 6e 74 20 | 69 4d 21 72 6e 74 66 79 | .event |iM!rntfy|
|00000700| c8 20 75 73 65 72 5f 6e | 61 6d 65 20 67 69 76 65 |. user_n|ame give|
|00000710| 6e 20 c7 63 6c 61 73 73 | 20 45 76 6e 74 c8 3a 65 |n .class| Evnt.:e|
|00000720| 76 65 6e 74 5f 74 79 70 | 65 2c 20 c7 63 6c 61 73 |vent_typ|e, .clas|
|00000730| 73 20 4e 61 6d 65 c8 3a | 64 65 76 69 63 65 5f 6e |s Name.:|device_n|
|00000740| 61 6d 65 2c 20 c7 63 6c | 61 73 73 20 41 64 64 72 |ame, .cl|ass Addr|
|00000750| c8 3a 64 65 76 69 63 65 | 5f 61 64 64 72 2c 20 c7 |.:device|_addr, .|
|00000760| 63 6c 61 73 73 20 50 72 | 6f 62 c8 3a 70 72 6f 62 |class Pr|ob.:prob|
|00000770| 65 5f 74 79 70 65 2c 20 | c7 63 6c 61 73 73 20 43 |e_type, |.class C|
|00000780| 6f 6e 64 c8 3a 64 65 76 | 69 63 65 5f 63 6f 6e 64 |ond.:dev|ice_cond|
|00000790| 69 74 69 6f 6e 2c 20 c7 | 63 6c 61 73 73 20 55 70 |ition, .|class Up|
|000007a0| 74 6d c8 3a 64 65 76 69 | 63 65 5f 73 79 73 55 70 |tm.:devi|ce_sysUp|
|000007b0| 54 69 6d 65 2c 20 c7 63 | 6c 61 73 73 20 54 69 6d |Time, .c|lass Tim|
|000007c0| 65 c8 3a 74 69 6d 65 73 | 74 61 6d 70 0d 09 0d 09 |e.:times|tamp....|
|000007d0| 2d 2d 20 49 6e 74 65 72 | 4d 61 70 70 65 72 20 70 |-- Inter|Mapper p|
|000007e0| 61 73 73 65 73 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |asses th|e follow|
|000007f0| 69 6e 67 20 70 61 72 61 | 6d 65 74 65 72 73 3a 0d |ing para|meters:.|
|00000800| 09 2d 2d 0d 09 2d 2d 20 | 09 75 73 65 72 5f 6e 61 |.--..-- |.user_na|
|00000810| 6d 65 20 3d 20 6e 61 6d | 65 20 6f 66 20 74 68 65 |me = nam|e of the|
|00000820| 20 75 73 65 72 20 62 65 | 69 6e 67 20 6e 6f 74 69 | user be|ing noti|
|00000830| 66 69 65 64 0d 09 2d 2d | 20 09 65 76 65 6e 74 5f |fied..--| .event_|
|00000840| 74 79 70 65 20 3d 20 74 | 79 70 65 20 6f 66 20 65 |type = t|ype of e|
|00000850| 76 65 6e 74 20 74 61 6b | 69 6e 67 20 70 6c 61 63 |vent tak|ing plac|
|00000860| 65 0d 09 2d 2d 20 09 64 | 65 76 69 63 65 5f 6e 61 |e..-- .d|evice_na|
|00000870| 6d 65 20 3d 20 6e 61 6d | 65 20 6f 66 20 74 68 65 |me = nam|e of the|
|00000880| 20 64 65 76 69 63 65 0d | 09 2d 2d 20 09 64 65 76 | device.|.-- .dev|
|00000890| 69 63 65 5f 61 64 64 72 | 20 3d 20 49 50 20 6f 72 |ice_addr| = IP or|
|000008a0| 20 41 70 70 6c 65 54 61 | 6c 6b 20 61 64 64 72 65 | AppleTa|lk addre|
|000008b0| 73 73 20 6f 66 20 74 68 | 65 20 64 65 76 69 63 65 |ss of th|e device|
|000008c0| 0d 09 2d 2d 20 09 70 72 | 6f 62 65 5f 74 79 70 65 |..-- .pr|obe_type|
|000008d0| 20 3d 20 68 6f 77 20 74 | 68 65 20 64 65 76 69 63 | = how t|he devic|
|000008e0| 65 20 69 73 20 62 65 69 | 6e 67 20 70 6f 6c 6c 65 |e is bei|ng polle|
|000008f0| 64 0d 09 2d 2d 20 09 64 | 65 76 69 63 65 5f 63 6f |d..-- .d|evice_co|
|00000900| 6e 64 69 74 69 6f 6e 20 | 3d 20 74 68 65 20 64 65 |ndition |= the de|
|00000910| 76 69 63 65 27 73 20 63 | 6f 6e 64 69 74 69 6f 6e |vice's c|ondition|
|00000920| 20 28 66 6f 72 20 41 4c | 52 4d 20 61 6e 64 20 57 | (for AL|RM and W|
|00000930| 41 52 4e 20 65 76 65 6e | 74 73 29 0d 09 2d 2d 20 |ARN even|ts)..-- |
|00000940| 09 64 65 76 69 63 65 5f | 73 79 73 55 70 54 69 6d |.device_|sysUpTim|
|00000950| 65 20 3d 20 68 6f 77 20 | 6c 6f 6e 67 20 74 68 65 |e = how |long the|
|00000960| 20 64 65 76 69 63 65 20 | 63 6c 61 69 6d 73 20 74 | device |claims t|
|00000970| 6f 20 68 61 76 65 20 62 | 65 65 6e 20 72 75 6e 6e |o have b|een runn|
|00000980| 69 6e 67 0d 09 2d 2d 20 | 09 74 69 6d 65 73 74 61 |ing..-- |.timesta|
|00000990| 6d 70 20 3d 20 77 68 65 | 6e 20 74 68 65 20 6e 6f |mp = whe|n the no|
|000009a0| 74 69 66 69 63 61 74 69 | 6f 6e 20 77 61 73 20 73 |tificati|on was s|
|000009b0| 65 6e 74 0d 09 0d 09 2d | 2d 20 44 6f 6e 27 74 20 |ent....-|- Don't |
|000009c0| 74 6f 67 67 6c 65 20 70 | 6f 77 65 72 20 69 66 20 |toggle p|ower if |
|000009d0| 74 68 65 20 64 65 76 69 | 63 65 20 6a 75 73 74 20 |the devi|ce just |
|000009e0| 73 74 61 72 74 65 64 20 | 77 6f 72 6b 69 6e 67 2c |started |working,|
|000009f0| 20 6e 6f 20 6d 61 74 74 | 65 72 20 77 68 61 74 0d | no matt|er what.|
|00000a00| 09 2d 2d 20 63 68 65 63 | 6b 62 6f 78 65 73 20 74 |.-- chec|kboxes t|
|00000a10| 68 65 79 27 76 65 20 6d | 61 72 6b 65 64 0d 09 0d |hey've m|arked...|
|00000a20| 09 69 66 20 65 76 65 6e | 74 5f 74 79 70 65 20 69 |.if even|t_type i|
|00000a30| 73 20 22 55 50 22 20 6f | 72 20 65 76 65 6e 74 5f |s "UP" o|r event_|
|00000a40| 74 79 70 65 20 69 73 20 | 22 4f 4b 22 20 74 68 65 |type is |"OK" the|
|00000a50| 6e 0d 09 09 62 65 65 70 | 0d 09 09 72 65 74 75 72 |n...beep|...retur|
|00000a60| 6e 0d 09 65 6e 64 20 69 | 66 0d 09 0d 09 2d 2d 20 |n..end i|f....-- |
|00000a70| 54 68 65 20 27 6f 75 74 | 6c 65 74 73 27 20 61 72 |The 'out|lets' ar|
|00000a80| 72 61 79 20 62 65 6c 6f | 77 20 6d 61 70 73 20 61 |ray belo|w maps a|
|00000a90| 6e 20 49 50 20 61 64 64 | 72 65 73 73 20 74 6f 20 |n IP add|ress to |
|00000aa0| 61 20 50 6f 77 65 72 4b | 65 79 20 55 6e 69 74 20 |a PowerK|ey Unit |
|00000ab0| 61 6e 64 20 4f 75 74 6c | 65 74 20 6e 75 6d 62 65 |and Outl|et numbe|
|00000ac0| 72 2e 0d 09 2d 2d 20 45 | 6e 74 65 72 20 79 6f 75 |r...-- E|nter you|
|00000ad0| 72 20 6f 77 6e 20 49 50 | 20 61 64 64 72 65 73 73 |r own IP| address|
|00000ae0| 65 73 2c 20 75 6e 69 74 | 20 6e 75 6d 62 65 72 73 |es, unit| numbers|
|00000af0| 20 61 6e 64 20 6f 75 74 | 6c 65 74 20 6e 75 6d 62 | and out|let numb|
|00000b00| 65 72 73 20 68 65 72 65 | 2e 20 49 66 20 79 6f 75 |ers here|. If you|
|00000b10| 20 64 6f 20 6e 6f 74 0d | 09 2d 2d 20 68 61 76 65 | do not.|.-- have|
|00000b20| 20 61 20 66 75 6c 6c 20 | 73 65 74 20 6f 66 20 66 | a full |set of f|
|00000b30| 69 76 65 20 6f 75 74 6c | 65 74 73 20 74 6f 20 63 |ive outl|ets to c|
|00000b40| 6f 6e 74 72 6f 6c 2c 20 | 79 6f 75 20 6d 61 79 20 |ontrol, |you may |
|00000b50| 72 65 6d 6f 76 65 20 74 | 68 65 20 65 78 74 72 61 |remove t|he extra|
|00000b60| 20 6c 69 6e 65 73 2e 20 | 4f 72 0d 09 2d 2d 20 61 | lines. |Or..-- a|
|00000b70| 64 64 20 6d 6f 72 65 20 | 6c 69 6e 65 73 20 69 66 |dd more |lines if|
|00000b80| 20 79 6f 75 20 68 61 76 | 65 20 73 65 76 65 72 61 | you hav|e severa|
|00000b90| 6c 20 50 6f 77 65 72 4b | 65 79 73 20 74 6f 20 63 |l PowerK|eys to c|
|00000ba0| 6f 6e 74 72 6f 6c 2e 0d | 09 0d 09 73 65 74 20 6f |ontrol..|...set o|
|00000bb0| 75 74 6c 65 74 73 20 74 | 6f 20 7b c2 0d 09 09 7b |utlets t|o {....{|
|00000bc0| 22 31 39 32 2e 31 36 38 | 2e 31 2e 31 30 22 2c 20 |"192.168|.1.10", |
|00000bd0| 22 31 22 2c 20 22 32 22 | 7d 2c 20 c2 0d 09 09 7b |"1", "2"|}, ....{|
|00000be0| 22 31 39 32 2e 31 36 38 | 2e 31 2e 31 30 32 22 2c |"192.168|.1.102",|
|00000bf0| 20 22 31 22 2c 20 22 33 | 22 7d 2c 20 c2 0d 09 09 | "1", "3|"}, ....|
|00000c00| 7b 22 31 39 32 2e 31 36 | 38 2e 31 2e 31 32 22 2c |{"192.16|8.1.12",|
|00000c10| 20 22 31 22 2c 20 22 34 | 22 7d 2c 20 c2 0d 09 09 | "1", "4|"}, ....|
|00000c20| 7b 22 31 39 32 2e 31 36 | 38 2e 31 2e 31 33 22 2c |{"192.16|8.1.13",|
|00000c30| 20 22 31 22 2c 20 22 35 | 22 7d 2c 20 c2 0d 09 09 | "1", "5|"}, ....|
|00000c40| 7b 22 31 39 32 2e 31 36 | 38 2e 31 2e 31 34 22 2c |{"192.16|8.1.14",|
|00000c50| 20 22 31 22 2c 20 22 36 | 22 7d 20 c2 0d 09 09 09 | "1", "6|"} .....|
|00000c60| 7d 0d 09 0d 09 73 65 74 | 20 75 6e 69 74 4e 75 6d |}....set| unitNum|
|00000c70| 62 65 72 20 74 6f 20 30 | 0d 09 73 65 74 20 6f 75 |ber to 0|..set ou|
|00000c80| 74 6c 65 74 4e 75 6d 62 | 65 72 20 74 6f 20 30 0d |tletNumb|er to 0.|
|00000c90| 09 72 65 70 65 61 74 20 | 77 69 74 68 20 69 20 66 |.repeat |with i f|
|00000ca0| 72 6f 6d 20 31 20 74 6f | 20 63 6f 75 6e 74 20 6f |rom 1 to| count o|
|00000cb0| 66 20 6f 75 74 6c 65 74 | 73 20 62 79 20 31 0d 09 |f outlet|s by 1..|
|00000cc0| 09 69 66 20 64 65 76 69 | 63 65 5f 61 64 64 72 20 |.if devi|ce_addr |
|00000cd0| 3d 20 69 74 65 6d 20 31 | 20 6f 66 20 69 74 65 6d |= item 1| of item|
|00000ce0| 20 69 20 6f 66 20 6f 75 | 74 6c 65 74 73 20 74 68 | i of ou|tlets th|
|00000cf0| 65 6e 0d 09 09 09 73 65 | 74 20 75 6e 69 74 4e 75 |en....se|t unitNu|
|00000d00| 6d 62 65 72 20 74 6f 20 | 69 74 65 6d 20 32 20 6f |mber to |item 2 o|
|00000d10| 66 20 69 74 65 6d 20 69 | 20 6f 66 20 6f 75 74 6c |f item i| of outl|
|00000d20| 65 74 73 0d 09 09 09 73 | 65 74 20 6f 75 74 6c 65 |ets....s|et outle|
|00000d30| 74 4e 75 6d 62 65 72 20 | 74 6f 20 69 74 65 6d 20 |tNumber |to item |
|00000d40| 33 20 6f 66 20 69 74 65 | 6d 20 69 20 6f 66 20 6f |3 of ite|m i of o|
|00000d50| 75 74 6c 65 74 73 0d 09 | 09 09 65 78 69 74 20 72 |utlets..|..exit r|
|00000d60| 65 70 65 61 74 0d 09 09 | 65 6e 64 20 69 66 0d 09 |epeat...|end if..|
|00000d70| 65 6e 64 20 72 65 70 65 | 61 74 0d 09 0d 09 2d 2d |end repe|at....--|
|00000d80| 20 64 69 73 70 6c 61 79 | 20 64 69 61 6c 6f 67 20 | display| dialog |
|00000d90| 22 75 6e 69 74 4e 75 6d | 62 65 72 3a 20 22 20 26 |"unitNum|ber: " &|
|00000da0| 20 75 6e 69 74 4e 75 6d | 62 65 72 20 26 20 22 2c | unitNum|ber & ",|
|00000db0| 20 6f 75 74 6c 65 74 4e | 75 6d 62 65 72 3a 20 22 | outletN|umber: "|
|00000dc0| 20 26 20 6f 75 74 6c 65 | 74 4e 75 6d 62 65 72 0d | & outle|tNumber.|
|00000dd0| 09 0d 09 69 66 20 75 6e | 69 74 4e 75 6d 62 65 72 |...if un|itNumber|
|00000de0| 20 69 73 20 30 20 74 68 | 65 6e 0d 09 09 62 65 65 | is 0 th|en...bee|
|00000df0| 70 0d 09 09 62 65 65 70 | 0d 09 65 6c 73 65 0d 09 |p...beep|..else..|
|00000e00| 09 74 65 6c 6c 20 61 70 | 70 6c 69 63 61 74 69 6f |.tell ap|plicatio|
|00000e10| 6e 20 22 50 6f 77 65 72 | 4b 65 79 20 45 78 74 65 |n "Power|Key Exte|
|00000e20| 6e 73 69 6f 6e 22 0d 09 | 09 09 73 65 74 20 6c 65 |nsion"..|..set le|
|00000e30| 76 65 6c 20 6f 66 20 6f | 75 74 6c 65 74 20 28 6f |vel of o|utlet (o|
|00000e40| 75 74 6c 65 74 4e 75 6d | 62 65 72 20 61 73 20 6e |utletNum|ber as n|
|00000e50| 75 6d 62 65 72 29 20 6f | 66 20 75 6e 69 74 20 28 |umber) o|f unit (|
|00000e60| 75 6e 69 74 4e 75 6d 62 | 65 72 20 61 73 20 6e 75 |unitNumb|er as nu|
|00000e70| 6d 62 65 72 29 20 74 6f | 20 30 0d 09 09 09 74 65 |mber) to| 0....te|
|00000e80| 6c 6c 20 6d 65 20 74 6f | 20 70 61 75 73 65 28 31 |ll me to| pause(1|
|00000e90| 30 29 0d 09 09 09 73 65 | 74 20 6c 65 76 65 6c 20 |0)....se|t level |
|00000ea0| 6f 66 20 6f 75 74 6c 65 | 74 20 28 6f 75 74 6c 65 |of outle|t (outle|
|00000eb0| 74 4e 75 6d 62 65 72 20 | 61 73 20 6e 75 6d 62 65 |tNumber |as numbe|
|00000ec0| 72 29 20 6f 66 20 75 6e | 69 74 20 28 75 6e 69 74 |r) of un|it (unit|
|00000ed0| 4e 75 6d 62 65 72 20 61 | 73 20 6e 75 6d 62 65 72 |Number a|s number|
|00000ee0| 29 20 74 6f 20 31 30 30 | 0d 09 09 65 6e 64 20 74 |) to 100|...end t|
|00000ef0| 65 6c 6c 0d 09 65 6e 64 | 20 69 66 0d 09 0d 65 6e |ell..end| if...en|
|00000f00| 64 20 c7 65 76 65 6e 74 | 20 69 4d 21 72 6e 74 66 |d .event| iM!rntf|
|00000f10| 79 c8 0d 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |y.......|........|
|00000f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 01 00 00 00 03 54 | 00 00 02 54 00 00 00 82 |.......T|...T....|
|00000f90| 50 6a 61 44 73 64 65 76 | 06 00 00 00 00 00 00 00 |PjaDsdev|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 18 53 63 72 69 70 74 20 | 45 64 69 74 6f 72 20 54 |.Script |Editor T|
|00000fc0| 65 6d 70 20 30 30 30 30 | 31 20 02 00 00 00 54 45 |emp 0000|1 ....TE|
|00000fd0| 00 00 54 45 58 54 54 6f | 79 53 00 00 00 00 00 00 |..TEXTTo|yS......|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 b5 6e bf 77 00 00 | 00 00 00 00 01 1e 00 00 |...n.w..|........|
|00001000| 00 00 00 00 00 00 00 00 | 00 00 00 6e 25 01 54 56 |........|...n%.TV|
|00001010| 4f 44 41 49 46 43 04 00 | 00 00 00 00 00 00 00 00 |ODAIFC..|........|
|00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001030| 00 00 00 00 01 12 25 01 | 55 4c 54 52 61 70 6e 6d |......%.|ULTRapnm|
|00001040| fd 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 55 |........|.......U|
|00001060| 25 01 61 73 63 72 78 4e | 49 54 04 00 00 00 00 00 |%.ascrxN|IT......|
|00001070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001080| 00 00 00 1a 40 00 00 00 | 00 00 00 00 00 00 00 00 |....@...|........|
|00001090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010a0| 00 78 00 00 00 00 00 08 | 00 00 00 00 00 00 00 00 |.x......|........|
|000010b0| 00 00 00 00 00 00 ff ff | ff ff 00 00 00 34 00 00 |........|.....4..|
|000010c0| 00 24 00 00 00 00 20 6f | 00 04 a0 5f 20 6f 00 04 |.$.... o|..._ o..|
|000010d0| a1 28 a0 23 4e 75 43 54 | 6f 20 72 75 6e 20 74 68 |.(.#NuCT|o run th|
|000010e0| 69 73 20 73 63 72 69 70 | 74 20 61 70 70 6c 69 63 |is scrip|t applic|
|000010f0| 61 74 69 6f 6e 2c 20 79 | 6f 75 20 6d 75 73 74 20 |ation, y|ou must |
|00001100| 66 69 72 73 74 20 69 6e | 73 74 61 6c 6c 20 41 70 |first in|stall Ap|
|00001110| 70 6c 65 53 63 72 69 70 | 74 2e 00 00 01 84 54 68 |pleScrip|t.....Th|
|00001120| 69 73 20 73 63 72 69 70 | 74 20 63 61 6e 20 74 6f |is scrip|t can to|
|00001130| 67 67 6c 65 20 6f 75 74 | 6c 65 74 73 20 6f 6e 20 |ggle out|lets on |
|00001140| 61 6e 20 61 74 74 61 63 | 68 65 64 20 53 6f 70 68 |an attac|hed Soph|
|00001150| 69 73 74 69 63 61 74 65 | 64 20 43 69 72 63 75 69 |isticate|d Circui|
|00001160| 74 73 20 50 6f 77 65 72 | 4b 65 79 20 50 52 4f 20 |ts Power|Key PRO |
|00001170| 6f 75 74 6c 65 74 20 73 | 74 72 69 70 2e 20 49 6e |outlet s|trip. In|
|00001180| 74 65 72 4d 61 70 70 65 | 72 20 77 69 6c 6c 20 70 |terMappe|r will p|
|00001190| 61 73 73 20 69 6e 20 74 | 68 65 20 49 50 20 61 64 |ass in t|he IP ad|
|000011a0| 64 72 65 73 73 20 6f 66 | 20 74 68 65 20 64 65 76 |dress of| the dev|
|000011b0| 69 63 65 20 74 6f 20 62 | 65 20 70 6f 77 65 72 2d |ice to b|e power-|
|000011c0| 63 79 63 6c 65 64 2c 20 | 61 6e 64 20 74 68 69 73 |cycled, |and this|
|000011d0| 20 73 63 72 69 70 74 20 | 77 69 6c 6c 20 74 75 72 | script |will tur|
|000011e0| 6e 20 70 6f 77 65 72 20 | 6f 66 66 20 66 6f 72 20 |n power |off for |
|000011f0| 31 35 20 73 65 63 6f 6e | 64 73 20 6f 6e 20 74 68 |15 secon|ds on th|
|00001200| 65 20 64 65 73 69 72 65 | 64 20 6f 75 74 6c 65 74 |e desire|d outlet|
|00001210| 2e 20 46 6f 72 20 6d 6f | 72 65 20 69 6e 66 6f 72 |. For mo|re infor|
|00001220| 6d 61 74 69 6f 6e 20 61 | 62 6f 75 74 20 50 6f 77 |mation a|bout Pow|
|00001230| 65 72 4b 65 79 20 50 72 | 6f 20 70 6f 77 65 72 20 |erKey Pr|o power |
|00001240| 73 74 72 69 70 73 2c 20 | 63 68 65 63 6b 20 68 74 |strips, |check ht|
|00001250| 74 70 3a 2f 2f 77 77 77 | 2e 73 6f 70 68 69 73 74 |tp://www|.sophist|
|00001260| 69 63 61 74 65 64 2e 63 | 6f 6d 2e 0d 0d 50 6c 65 |icated.c|om...Ple|
|00001270| 61 73 65 20 73 65 6e 64 | 20 63 6f 6d 6d 65 6e 74 |ase send| comment|
|00001280| 73 20 74 6f 20 22 49 6e | 74 65 72 4d 61 70 70 65 |s to "In|terMappe|
|00001290| 72 40 44 61 72 74 6d 6f | 75 74 68 2e 45 44 55 22 |r@Dartmo|uth.EDU"|
|000012a0| 2e 0d 00 00 00 16 00 01 | 00 00 00 00 00 0c 00 0a |........|........|
|000012b0| 00 03 00 00 00 09 00 00 | 00 00 00 00 00 00 00 14 |........|........|
|000012c0| 00 7a 00 a5 02 35 03 05 | 00 2b 00 a5 02 68 03 0b |.z...5..|.+...h..|
|000012d0| 00 00 00 00 00 00 01 00 | 00 00 03 54 00 00 02 54 |........|...T...T|
|000012e0| 00 00 00 82 03 81 33 08 | 21 6c 00 00 00 1c 00 82 |......3.|!l......|
|000012f0| 00 04 73 63 73 7a 00 00 | 00 2a 4e 4f 54 49 00 00 |..scsz..|.*NOTI..|
|00001300| 00 36 54 45 58 54 00 00 | 00 42 73 74 79 6c 00 00 |.6TEXT..|.Bstyl..|
|00001310| 00 4e 57 50 6f 73 00 00 | 00 5a 00 00 ff ff 00 00 |.NWPos..|.Z......|
|00001320| 00 00 03 81 42 38 00 80 | ff ff 50 00 00 1e 03 81 |....B8..|..P.....|
|00001330| 41 98 04 68 ff ff 00 00 | 00 9a 03 81 40 9c 04 68 |A..h....|....@..h|
|00001340| ff ff 00 00 02 22 03 81 | 41 60 00 80 ff ff 00 00 |....."..|A`......|
|00001350| 02 3c 03 81 42 0c 00 00 | 00 00 00 00 00 00 00 00 |.<..B...|........|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+